import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:delivery_application/common_widget/round_button.dart';
import 'package:delivery_application/common_widget/round_textfield.dart';
import 'package:delivery_application/view/login/sign_up_view.dart';

class NewPasswordView extends StatefulWidget {
  const NewPasswordView({super.key});

  @override
  State<NewPasswordView> createState() => _NewPasswordViewState();
}

class _NewPasswordViewState extends State<NewPasswordView> {
  TextEditingController txtPassword = TextEditingController();
  TextEditingController txtConfirmPassword = TextEditingController();
  @override
  Widget build(BuildContext context) {
    var media = MediaQuery.of(context).size; 
    return Scaffold(
      backgroundColor: Color(0xff00AEEE),
      body: SingleChildScrollView(
        child: Padding(
          padding: const EdgeInsets.symmetric(
              vertical: 20,
              horizontal:
                  25), 
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              const SizedBox(
                height: 64,
              ),
              Text(
                "新的密码",
                style: TextStyle(
                    color: Colors.white,
                    fontSize: 50,
                    fontWeight: FontWeight.w800),
              ),
              SizedBox(height: 20),
              Text(
                "请输入新的密码",
                style: TextStyle(
                    color: Colors.white,
                    fontSize: 16,
                    fontWeight: FontWeight.w600),
              ),
              SizedBox(height: 60), 

              RoundTextfield(
                hintText: "新的密码",
                controller: txtPassword,
                keyboardType: TextInputType.emailAddress,
              ),
              SizedBox(height: 40),

              RoundTextfield(
                hintText: "确认密码",
                controller: txtPassword,
                keyboardType: TextInputType.emailAddress,
              ),

              SizedBox(height: 40), 
              RoundButton(title: "下一步", onPressed: () {}),
            ],
          ),
        ),
      ),
    );
  }
}
